function WriteCoordinatesSelector() {
	
	this.writeCoordinatesSelector=writeCoordinatesSelector;
	this.writeCoordOption=writeCoordOption;
	
function writeCoordinatesSelector(dascoordinatesystem){
	var html='';
	var contentArray=[];
	for ( var i = 0; i < dascoordinatesystem.coordinates.length; i++) {
		var coord=dascoordinatesystem.coordinates[i];
		var content=coord.content;
		contentArray.push(content);
		
	}
	contentArray.sort();//sort alphabetically
	for(var i=0; i<contentArray.length; i++){
		var newText=this.writeCoordOption(contentArray[i]);
		html+=newText;
	}
		return html;
}	
	
	
	function writeCoordOption(coord){
		return '<option value=\"'+coord+'\">'+coord+'</option>';
	}
	
}